const express = require('express')
const path = require('path')
const app = express()
app.get('/', function(req, res){
  res.sendFile(path.resolve(__dirname, 'long.html'))
})
app.get('/clock', function(req, res){
  setTimeout(function(){
    res.end(new Date().toLocaleString())
  }, 5000)
})
app.listen(8080, function(){
  console.log('listing to 8080')
})
